/*
 * @description: 功能
 * @author: Yoke
 * @Date: 2024-08-29 08:39:19
 */
import { createWebHashHistory, createRouter, type RouteRecordRaw } from 'vue-router'

const routes: RouteRecordRaw[] = [
    {
        path: '/',
        component: () => import('@/views/SelectType/index.vue')
    },
    {
        path: '/template1',
        component: () => import('@/views/TemplateTypeOne/index.vue')
    },
    {
        path: '/404',
        component: () => import('@/views/404.vue')
    },
    {
        path: '/:pathMatch(.*)',
        redirect: '/404'
    }
]

const router = createRouter({
    history: createWebHashHistory(),
    routes,
})

export default router